package operator;

/**
 * @author 王旭阳
 */
public class Demo07 {
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        a+=b;
        //a=a+b
        a-=b;
        //a=a-b
        System.out.println(a);
        System.out.println(b);

        //字符串的拼接
        System.out.println(""+a+b);
        //结果1020  当“”在前是拼接完成后为1020
        System.out.println(a+b+"");
        //结果30

    }
}
